
package sk.mka.phd.googleagent.query;

/**
 *
 * @author bracek
 * @date Aug 2, 2010
 */


public class GoogleResult {
    private String url, title;

    public GoogleResult (String title, String url)
    {
        setTitle(title);
        this.url = url;
    }

    private void setTitle (String title)
    {
        this.title = title;
    }

    public String getTitle () {
    	return title;
    }

    public String getUrlString() {
        return url;
    }

    @Override
    public String toString() {
        return (title + "\t" + url);
    }

    public boolean equals (GoogleResult r)
    {
        if (r.getUrlString().equals(url))
            return true;
        return false;
    }

}
